﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ERPStore.Services
{
	internal class VoidLocalizationService : ERPStore.Services.ILocalizationService
	{
		#region ILocalizationService Members

		public bool Enabled
		{
			get
			{
				return false;
			}
		}

		public Dictionary<int, IEnumerable<ERPStore.Models.EntityLocalization>> GetLocalizationByEntityIdList(string entityName, IEnumerable<int> list)
		{
			return null;
		}

		public IEnumerable<ERPStore.Models.EntityLocalization> GetLocalizationByEntityId(string entityName, int entityId)
		{
			return null;
		}

		public string Token
		{
			get 
			{
				return Guid.NewGuid().ToString();
			}
		}

		public IEnumerable<string> SupportedLanguageList
		{
			get 
			{
				return ERPStore.Models.Language.GetValues().Select(i => i.Name);
			}
		}

		public string ResourcesPath
		{
			get 
			{
				return null;
			}
		}

		public string GetLocalizedContent(string path, string language, string token, string key, string defaultContent, ERPStore.Models.LocalizedContentType contentType)
		{
			return defaultContent;
		}

		public void Save(string path, string language, string key, string value)
		{
			
		}

		public string GetCurrentLanguage()
		{
			return null;
		}

		#endregion
	}
}
